package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.pro.enums.AccessLinkEnum;
import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import lombok.Getter;

/**
 * 其他设置下的进销存设置下的枚举类
 */
@Getter
public enum JxcSetEnum {

    /**
     * 基础配置
     */
    BASICS_SET("enum.jxcSet.name.basics_set","basicsSet",AccessLinkEnum.JXC_BASICS_SET,ProPermissionAliasEnum.JXC_SET.getAlias(),1),
    /**
     * 结账与反结账
     */
    CHECK_OUT("enum.jxcSet.name.check_out","checkOut",AccessLinkEnum.CHECK_OUT,ProPermissionAliasEnum.JXC_SET.getAlias(),2),
    /**
     * 智能补货设置
     **/
    SMAET_SET("enum.jxcSet.name.smart_set","smartSet",AccessLinkEnum.SMART_REPLENISHMENT,ProPermissionAliasEnum.JXC_SET.getAlias(),3),

    ;

    private String name;

    private String alias;

    private AccessLinkEnum accessLinkEnum;

    private String permission;

    private Integer type;

    JxcSetEnum(String name, String alias, AccessLinkEnum accessLinkEnum, String permission , Integer type){
        this.name = name;
        this.alias = alias;
        this.accessLinkEnum = accessLinkEnum;
        this.permission = permission;
        this.type = type;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
